package com.api.base.model;

import java.io.Serializable;
import javax.persistence.*;

@Table(name = "verification_code")
public class VerificationCode implements Serializable {
    /**
     * 邮箱
     */
    @Id
    private String email;

    /**
     * 验证码
     */
    @Column(name = "verification_code")
    private String verificationCode;

    /**
     * 过期时间
     */
    @Column(name = "expiration_time")
    private Long expirationTime;

    /**
     * 1注册
     */
    private Integer type;

    private static final long serialVersionUID = 1L;

    /**
     * 获取邮箱
     *
     * @return email - 邮箱
     */
    public String getEmail() {
        return email;
    }

    /**
     * 设置邮箱
     *
     * @param email 邮箱
     */
    public void setEmail(String email) {
        this.email = email;
    }

    /**
     * 获取验证码
     *
     * @return verification_code - 验证码
     */
    public String getVerificationCode() {
        return verificationCode;
    }

    /**
     * 设置验证码
     *
     * @param verificationCode 验证码
     */
    public void setVerificationCode(String verificationCode) {
        this.verificationCode = verificationCode;
    }

    /**
     * 获取过期时间
     *
     * @return expiration_time - 过期时间
     */
    public Long getExpirationTime() {
        return expirationTime;
    }

    /**
     * 设置过期时间
     *
     * @param expirationTime 过期时间
     */
    public void setExpirationTime(Long expirationTime) {
        this.expirationTime = expirationTime;
    }

    /**
     * 获取1注册
     *
     * @return type - 1注册
     */
    public Integer getType() {
        return type;
    }

    /**
     * 设置1注册
     *
     * @param type 1注册
     */
    public void setType(Integer type) {
        this.type = type;
    }
}